#pragma once


class CGlyphBitmap
{
public:
	enum EPixelMode
	{
		ePixelMode_1bpp,
		ePixelMode_8bpp
	};

public:
	CGlyphBitmap(const uint8* bits, uint width, uint height, int pitch, EPixelMode pixel_mode);
	uint8 GetPixel(uint x, uint y) const;

private:
	uint8 GetMonochromePixel(uint x, uint y) const;
	uint8 GetGrayPixel(uint x, uint y) const;

private:
	const uint8*	m_bits;
	uint					m_width;
	uint					m_height;
	int						m_pitch;
	EPixelMode		m_pixelMode;
};